package com.itheima.service.Impl;

import com.itheima.mapper.UserMapper;
import com.itheima.service.UserService;

/**
 * @param
 * @return
 */
public class UserServiceImpl implements UserService{
    //setter方式注入UserMapper值
private UserMapper userMapper;

    public UserMapper getUserMapper() {
        return userMapper;
    }

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public void findAll() {
        System.out.println(
                "查询所有"
        );
        userMapper.findAll();
    }
}
